<?php

/**
 * Groupgallery form.
 *
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class GroupgalleryFormUser extends BaseGroupgalleryForm
{
  public function configure()
  {
  	 unset(
      
      $this['created_at'],
      $this['pub'],
      $this['updated_at']
    );
    
      $this->setWidgets(array(
      'id'               => new sfWidgetFormInputHidden(),
  	  'user_id'          => new sfWidgetFormInputHidden( array (), array ('value' => sfContext::getInstance()->getUser()->getAttribute( 'user_id', null, 'sfGuardSecurityUser' ))),	 
    ));
  	
  	$this->widgetSchema->setNameFormat('groupgallery[%s]');
  	$this->embedI18n(array('en', 'ru'));
  	
  }
}
